<?php include("../../util/database.php"); ?>
<?php include("../../util/playerUtil.php"); ?>
<?php include("../../util/fixtureUtil.php"); ?>
<?php include("../../util/enums.php"); ?>
<table align='center' width='75%' cellpadding='5'>
	<?
	for ($i = 20; $i <= 20; $i++) {
		if ($i != 4 && $i != 5 && $i != 6 && $i != 16 && $i != 19) {
			$coachResults = getCoachResults(3, $i, 2011, true)
	?>
	<tr><td colspan=9 width=100% align='center'><b>Round <?echo $i?></b></td></tr>
	<tr>
	<td width='20%'><b>Team name</b></td>
	<td width='10%'><b>Won</b></td>
	<td width='10%'><b>For</b></td>
	<td width='10%'><b>Against</b></td>
	<td width='10%'><b>%</b></td>
	<td width='10%'><b>Highest</b></td>
	<td width='10%'><b>Lowest</b></td>
	<td width='10%'><b>Average</b></td>
	<td width='10%'><b>Streak</b></td>
	</tr>
	<?
	$count = count($coachResults);
	for ($j = 0; $j < $count; $j++) {?>
		<tr>
		<td width='20%'><?echo $coachResults[$j]->team->teamName ?></td>
		<td width='10%'><?echo $coachResults[$j]->gamesWon ?></td>
		<td width='10%'><?echo $coachResults[$j]->forValue ?></td>
		<td width='10%'><?echo $coachResults[$j]->againstValue ?></td>
		<td width='10%'><?echo $coachResults[$j]->getPercentage() ?></td>
		<td width='10%'><?echo $coachResults[$j]->highestScore ?></td>
		<td width='10%'><?echo $coachResults[$j]->lowestScore ?></td>
		<td width='10%'><?echo $coachResults[$j]->getAverageScore() ?></td>
		<td width='10%'><?echo $coachResults[$j]->getStreakVal() ?></td>
		</tr>
		<?if ($j == 7) {?>
			<tr>
			<td colspan=9><hr></td>
			</tr>
		<?}
	}
	}
	}?>
</table>